{% extends 'base.html' %}
{% load i18n %}

{% block title %}{{ view_title }} - {{ block.super }}{% endblock %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-md-8">
        <div class="card border-danger shadow-sm">
             <div class="card-header bg-danger text-white">
                <i class="bi bi-exclamation-triangle-fill me-2"></i> {{ view_title }}
             </div>
             <div class="card-body">
                <p class="lead">{% blocktrans with variety=object.rice_variety date=object.planting_date|date:"Y-m-d" %}您确定要删除关于 <strong>{{ variety }}</strong> (种植于 {{ date }}) 的这条种植记录吗？{% endblocktrans %}</p>
                <p class="text-danger"><strong>{% trans "此操作不可撤销！" %}</strong></p>

                <form method="post">
                    {% csrf_token %}
                    <button type="submit" class="btn btn-danger"><i class="bi bi-trash-fill"></i> {% trans "确认删除" %}</button>
                     {# Link back to the record detail page #}
                    <a href="{{ object.get_absolute_url }}" class="btn btn-secondary"><i class="bi bi-x-circle"></i> {% trans "取消" %}</a>
                </form>
             </div>
        </div>
    </div>
</div>
{% endblock %}